package net.csdn.business.common.domain.request;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApplyIndexSetDTO {
    /** 组织ID/仓库ID； */
    @NotBlank(message = "path不能为空")
    private String path;

    /** 1:组织；2:仓库 */
    @NotNull(message = "sourceType不能为空")
    @Range(min = 1, max = 2, message = "sourceType不合法")
    private Integer sourceType;

    @NotNull(message = "isEnable不能为空")
    private Boolean isEnable=false;

    //@NotBlank(message = "currUserId不能为空")
    private String currUserId;
}
